package com.example.homecunter.video.api;

import com.example.common.utils.BaseEntity;
import com.example.homecunter.video.entity.ChannelEntity;
import com.example.homecunter.video.entity.VideoEntity;

import java.util.List;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface TypeApi {
    @GET("/channel/getAll")
    Flowable<BaseEntity<List<ChannelEntity>>> getType();

    @GET("/video/getVideoInfoWithChannel")
    Flowable<BaseEntity<List<VideoEntity>>> getVideo(@Query("channelid")String channelid,@Query("page")String page,@Query("pagesize")String pagesize);

    /*
    @GET("video/getVideoInfoWithChannel")
    Observable<VideoEntity> getVideo(@Query("channelid") String channelid, @Query("page") String page, @Query("pagesize") String pagesize);
     */

}
